/*timetable result3 result4 css*/

body
{
    background-image: url("../img/portfolio/p2.jpg");
    background-size: 100% 100%;
    background-attachment: fixed;
}


/*result4导航栏*/
 body , .nav , .menu {
     display: flex;
     justify-content: center;
     align-items: center;
 }
 .nav {
     position: relative;
     margin: 30px;
     background-color: #fff;
     padding: 10px;
     transform: none;
     border-radius: 50px;
     overflow: hidden;
     box-shadow: 0 8px 15px rgba(0,0,0,.2);
 }
 .menu {
     margin: 0;
     padding: 0;
     width: 0;
     overflow: hidden;
     transition: 0.5s;
 }
 .nav input:checked ~ .menu {
     width: 400px;

 }
 .menu li {
     list-style: none;
     margin: 0 10px;

 }
 .menu li a{
     text-decoration: none;
     color: #666;

     font-weight: 600;
     transition: 0.5s;

 }
 .menu li a:hover {
     color: cadetblue;
 }
 .nav input {
     width: 45px;
     height: 30px;
     cursor: pointer;
     opacity: 0;
 }
 .nav span {
     position: absolute;
     left: 20px;
     width: 30px;
     height: 4px;
     border-radius: 50px;
     background-color: #666;
     pointer-events: none;
     transition: 0.5s;
 }
 .nav input:checked ~span {
     background-color: antiquewhite;
 }
 .nav span:nth-child(2) {
     transform: translateY(-8px);
 }
 .nav input:checked ~ span:nth-child(2) {
     transform: translateY(0) rotate(-45deg);
 }
 .nav span:nth-child(3) {
     transform: translateY(8px);
 }
 .nav input:checked ~ span:nth-child(3) {
     transform: translateY(0) rotate(45deg);
 }


.box
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 400px;
    padding: 20px;
    margin: 15px;
    background: rgba(225,225,225,.8);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.8);
    border-radius: 15px;
}


h2
{
    margin: 40px 0 40px;
    padding: 0;
    color: #ffffff;
    text-align: center;
}

.box h1
{
    margin: 20px 0 45px;
    padding: 0;
    color: black;
    text-align: center;
}

.box h2
{
    margin: 0 0 30px;
    padding: 0;
    color: #000000;
    text-align: center;
}


.box h3
{
    margin: 0 0 30px;
    padding: 0;
    color: black;
    text-align: center;
}

.box .inputBox
{
    position: relative;
}

.box .inputBox input
{
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: black;
    letter-spacing: 1px;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
}
.box img
{
    width: 50%;
    border-radius: 20px;
    margin: 0 0 0 82px;
    text-align: center;
}

.box .inputBox label
{
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 1px;
    padding: 10px 0;
    font-size: 16px;
    color: black;
    pointer-events: none;
    transition: .5s;
}
.box .inputBox input:focus ~ label,
.box .inputBox input:valid ~ label
{
    top: -18px;
    left: 0;
    color: darkgray;
    font-size: 12px;
}
.box input[type='submit']
{
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    background: cadetblue;
    padding: 10px 20px;
    margin: 0 0 0 150px;
    cursor: pointer;
    border-radius: 7px;
}
